package no.apero.wiiamp;

import java.io.File;

import no.apero.wiiamp.exceptions.DriveException;

import junit.framework.TestCase;
 
public class FileReaderTest extends TestCase {

	public void testGoUp(){
		FileReader a = FileReader.getInstance();
		File f = a.getCurrentDir();
		System.out.println(f.getAbsolutePath());
		try {
			a.goUp();
			fail();
		} catch (DriveException e) {
		}
		if (a.getCurrentDir() == null) fail();
	}

	public void testGoInto(){
		FileReader a = FileReader.getInstance();
		File f = a.getCurrentDir();
		a.goInto(a.listDirs()[0].getName());
		f = a.getCurrentDir();
		System.out.println(f.getAbsolutePath());
		f = new File("C:");
		System.out.println(f.getAbsolutePath());
		a.getCurrentDir();
	}

	
}
